package com.ourteam.workspace.dao;
/**
 * Template Name : DAO数据对象 Template Version : 1 Template Last Modfiy Date : Fri Aug 18 15:51:23 CST
 * 2017 Auto Generate Date : 2018-11-30 18:42:28 Warning ! This file will be overwrite when
 * regenerate !
 */
import org.apache.commons.lang.StringUtils;

public class WorkspaceServer implements java.io.Serializable {

  public WorkspaceServer() {
    super();
  }

  private long id;

  /** Attribute id Be Seted Falg */
  private boolean idSetted = false;

  /** Attribute id is Null Falg */
  private boolean idNull = false;

  /**
   * Get id
   *
   * @return long
   */
  public final long getId() {

    return id;
  }

  /**
   * Set id
   *
   * @param long
   */
  public final void setId(long id) {

    this.id = id;

    this.idSetted = true;

    this.setIdNull(false);
  }

  /**
   * Get id Has Been Setted
   *
   * @return boolean
   */
  public final boolean isIdSetted() {
    return this.idSetted;
  }

  /** Set id Null */
  public final void setIdNull() {

    this.idNull = true;
  }

  public final void setIdNull(boolean aNullFlag) {

    this.idNull = aNullFlag;
  }

  public final boolean isIdNull() {

    return this.idNull;
  }

  private long workspaceId;

  /** Attribute workspaceId Be Seted Falg */
  private boolean workspaceIdSetted = false;

  /** Attribute workspaceId is Null Falg */
  private boolean workspaceIdNull = false;

  /**
   * Get workspaceId
   *
   * @return long
   */
  public final long getWorkspaceId() {

    return workspaceId;
  }

  /**
   * Set workspaceId
   *
   * @param long
   */
  public final void setWorkspaceId(long workspaceId) {

    this.workspaceId = workspaceId;

    this.workspaceIdSetted = true;

    this.setWorkspaceIdNull(false);
  }

  /**
   * Get workspaceId Has Been Setted
   *
   * @return boolean
   */
  public final boolean isWorkspaceIdSetted() {
    return this.workspaceIdSetted;
  }

  /** Set workspaceId Null */
  public final void setWorkspaceIdNull() {

    this.workspaceIdNull = true;
  }

  public final void setWorkspaceIdNull(boolean aNullFlag) {

    this.workspaceIdNull = aNullFlag;
  }

  public final boolean isWorkspaceIdNull() {

    return this.workspaceIdNull;
  }

  private String serverName;

  /** Attribute serverName Be Seted Falg */
  private boolean serverNameSetted = false;

  /** Attribute serverName is Null Falg */
  private boolean serverNameNull = false;

  /**
   * Get serverName
   *
   * @return String
   */
  public final String getServerName() {

    if (isServerNameNull()) {
      return null;
    } else {
      return StringUtils.trim(serverName);
    }
  }

  /**
   * Set serverName
   *
   * @param String
   */
  public final void setServerName(String serverName) {

    this.serverName = StringUtils.trim(serverName);

    this.serverNameSetted = true;

    this.setServerNameNull(this.serverName == null);
  }

  /**
   * Get serverName Has Been Setted
   *
   * @return boolean
   */
  public final boolean isServerNameSetted() {
    return this.serverNameSetted;
  }

  /** Set serverName Null */
  public final void setServerNameNull() {

    this.serverNameNull = true;
  }

  public final void setServerNameNull(boolean aNullFlag) {

    this.serverNameNull = aNullFlag;
  }

  public final boolean isServerNameNull() {

    return this.serverNameNull;
  }

  private String serverType;

  /** Attribute serverType Be Seted Falg */
  private boolean serverTypeSetted = false;

  /** Attribute serverType is Null Falg */
  private boolean serverTypeNull = false;

  /**
   * Get serverType
   *
   * @return String
   */
  public final String getServerType() {

    if (isServerTypeNull()) {
      return null;
    } else {
      return StringUtils.trim(serverType);
    }
  }

  /**
   * Set serverType
   *
   * @param String
   */
  public final void setServerType(String serverType) {

    this.serverType = StringUtils.trim(serverType);

    this.serverTypeSetted = true;

    this.setServerTypeNull(this.serverType == null);
  }

  /**
   * Get serverType Has Been Setted
   *
   * @return boolean
   */
  public final boolean isServerTypeSetted() {
    return this.serverTypeSetted;
  }

  /** Set serverType Null */
  public final void setServerTypeNull() {

    this.serverTypeNull = true;
  }

  public final void setServerTypeNull(boolean aNullFlag) {

    this.serverTypeNull = aNullFlag;
  }

  public final boolean isServerTypeNull() {

    return this.serverTypeNull;
  }

  private String serverLogo;

  /** Attribute serverLogo Be Seted Falg */
  private boolean serverLogoSetted = false;

  /** Attribute serverLogo is Null Falg */
  private boolean serverLogoNull = false;

  /**
   * Get serverLogo
   *
   * @return String
   */
  public final String getServerLogo() {

    if (isServerLogoNull()) {
      return null;
    } else {
      return StringUtils.trim(serverLogo);
    }
  }

  /**
   * Set serverLogo
   *
   * @param String
   */
  public final void setServerLogo(String serverLogo) {

    this.serverLogo = StringUtils.trim(serverLogo);

    this.serverLogoSetted = true;

    this.setServerLogoNull(this.serverLogo == null);
  }

  /**
   * Get serverLogo Has Been Setted
   *
   * @return boolean
   */
  public final boolean isServerLogoSetted() {
    return this.serverLogoSetted;
  }

  /** Set serverLogo Null */
  public final void setServerLogoNull() {

    this.serverLogoNull = true;
  }

  public final void setServerLogoNull(boolean aNullFlag) {

    this.serverLogoNull = aNullFlag;
  }

  public final boolean isServerLogoNull() {

    return this.serverLogoNull;
  }

  private String startCmd;

  /** Attribute startCmd Be Seted Falg */
  private boolean startCmdSetted = false;

  /** Attribute startCmd is Null Falg */
  private boolean startCmdNull = false;

  /**
   * Get startCmd
   *
   * @return String
   */
  public final String getStartCmd() {

    if (isStartCmdNull()) {
      return null;
    } else {
      return StringUtils.trim(startCmd);
    }
  }

  /**
   * Set startCmd
   *
   * @param String
   */
  public final void setStartCmd(String startCmd) {

    this.startCmd = StringUtils.trim(startCmd);

    this.startCmdSetted = true;

    this.setStartCmdNull(this.startCmd == null);
  }

  /**
   * Get startCmd Has Been Setted
   *
   * @return boolean
   */
  public final boolean isStartCmdSetted() {
    return this.startCmdSetted;
  }

  /** Set startCmd Null */
  public final void setStartCmdNull() {

    this.startCmdNull = true;
  }

  public final void setStartCmdNull(boolean aNullFlag) {

    this.startCmdNull = aNullFlag;
  }

  public final boolean isStartCmdNull() {

    return this.startCmdNull;
  }

  private String stopCmd;

  /** Attribute stopCmd Be Seted Falg */
  private boolean stopCmdSetted = false;

  /** Attribute stopCmd is Null Falg */
  private boolean stopCmdNull = false;

  /**
   * Get stopCmd
   *
   * @return String
   */
  public final String getStopCmd() {

    if (isStopCmdNull()) {
      return null;
    } else {
      return StringUtils.trim(stopCmd);
    }
  }

  /**
   * Set stopCmd
   *
   * @param String
   */
  public final void setStopCmd(String stopCmd) {

    this.stopCmd = StringUtils.trim(stopCmd);

    this.stopCmdSetted = true;

    this.setStopCmdNull(this.stopCmd == null);
  }

  /**
   * Get stopCmd Has Been Setted
   *
   * @return boolean
   */
  public final boolean isStopCmdSetted() {
    return this.stopCmdSetted;
  }

  /** Set stopCmd Null */
  public final void setStopCmdNull() {

    this.stopCmdNull = true;
  }

  public final void setStopCmdNull(boolean aNullFlag) {

    this.stopCmdNull = aNullFlag;
  }

  public final boolean isStopCmdNull() {

    return this.stopCmdNull;
  }

  private String restartCmd;

  /** Attribute restartCmd Be Seted Falg */
  private boolean restartCmdSetted = false;

  /** Attribute restartCmd is Null Falg */
  private boolean restartCmdNull = false;

  /**
   * Get restartCmd
   *
   * @return String
   */
  public final String getRestartCmd() {

    if (isRestartCmdNull()) {
      return null;
    } else {
      return StringUtils.trim(restartCmd);
    }
  }

  /**
   * Set restartCmd
   *
   * @param String
   */
  public final void setRestartCmd(String restartCmd) {

    this.restartCmd = StringUtils.trim(restartCmd);

    this.restartCmdSetted = true;

    this.setRestartCmdNull(this.restartCmd == null);
  }

  /**
   * Get restartCmd Has Been Setted
   *
   * @return boolean
   */
  public final boolean isRestartCmdSetted() {
    return this.restartCmdSetted;
  }

  /** Set restartCmd Null */
  public final void setRestartCmdNull() {

    this.restartCmdNull = true;
  }

  public final void setRestartCmdNull(boolean aNullFlag) {

    this.restartCmdNull = aNullFlag;
  }

  public final boolean isRestartCmdNull() {

    return this.restartCmdNull;
  }

  private String serverLocation;

  /** Attribute serverLocation Be Seted Falg */
  private boolean serverLocationSetted = false;

  /** Attribute serverLocation is Null Falg */
  private boolean serverLocationNull = false;

  /**
   * Get serverLocation
   *
   * @return String
   */
  public final String getServerLocation() {

    if (isServerLocationNull()) {
      return null;
    } else {
      return StringUtils.trim(serverLocation);
    }
  }

  /**
   * Set serverLocation
   *
   * @param String
   */
  public final void setServerLocation(String serverLocation) {

    this.serverLocation = StringUtils.trim(serverLocation);

    this.serverLocationSetted = true;

    this.setServerLocationNull(this.serverLocation == null);
  }

  /**
   * Get serverLocation Has Been Setted
   *
   * @return boolean
   */
  public final boolean isServerLocationSetted() {
    return this.serverLocationSetted;
  }

  /** Set serverLocation Null */
  public final void setServerLocationNull() {

    this.serverLocationNull = true;
  }

  public final void setServerLocationNull(boolean aNullFlag) {

    this.serverLocationNull = aNullFlag;
  }

  public final boolean isServerLocationNull() {

    return this.serverLocationNull;
  }

  private String serverUser;

  /** Attribute serverUser Be Seted Falg */
  private boolean serverUserSetted = false;

  /** Attribute serverUser is Null Falg */
  private boolean serverUserNull = false;

  /**
   * Get serverUser
   *
   * @return String
   */
  public final String getServerUser() {

    if (isServerUserNull()) {
      return null;
    } else {
      return StringUtils.trim(serverUser);
    }
  }

  /**
   * Set serverUser
   *
   * @param String
   */
  public final void setServerUser(String serverUser) {

    this.serverUser = StringUtils.trim(serverUser);

    this.serverUserSetted = true;

    this.setServerUserNull(this.serverUser == null);
  }

  /**
   * Get serverUser Has Been Setted
   *
   * @return boolean
   */
  public final boolean isServerUserSetted() {
    return this.serverUserSetted;
  }

  /** Set serverUser Null */
  public final void setServerUserNull() {

    this.serverUserNull = true;
  }

  public final void setServerUserNull(boolean aNullFlag) {

    this.serverUserNull = aNullFlag;
  }

  public final boolean isServerUserNull() {

    return this.serverUserNull;
  }

  private String serverPassword;

  /** Attribute serverPassword Be Seted Falg */
  private boolean serverPasswordSetted = false;

  /** Attribute serverPassword is Null Falg */
  private boolean serverPasswordNull = false;

  /**
   * Get serverPassword
   *
   * @return String
   */
  public final String getServerPassword() {

    if (isServerPasswordNull()) {
      return null;
    } else {
      return StringUtils.trim(serverPassword);
    }
  }

  /**
   * Set serverPassword
   *
   * @param String
   */
  public final void setServerPassword(String serverPassword) {

    this.serverPassword = StringUtils.trim(serverPassword);

    this.serverPasswordSetted = true;

    this.setServerPasswordNull(this.serverPassword == null);
  }

  /**
   * Get serverPassword Has Been Setted
   *
   * @return boolean
   */
  public final boolean isServerPasswordSetted() {
    return this.serverPasswordSetted;
  }

  /** Set serverPassword Null */
  public final void setServerPasswordNull() {

    this.serverPasswordNull = true;
  }

  public final void setServerPasswordNull(boolean aNullFlag) {

    this.serverPasswordNull = aNullFlag;
  }

  public final boolean isServerPasswordNull() {

    return this.serverPasswordNull;
  }

  private String status;

  /** Attribute status Be Seted Falg */
  private boolean statusSetted = false;

  /** Attribute status is Null Falg */
  private boolean statusNull = false;

  /**
   * Get status
   *
   * @return String
   */
  public final String getStatus() {

    if (isStatusNull()) {
      return null;
    } else {
      return StringUtils.trim(status);
    }
  }

  /**
   * Set status
   *
   * @param String
   */
  public final void setStatus(String status) {

    this.status = StringUtils.trim(status);

    this.statusSetted = true;

    this.setStatusNull(this.status == null);
  }

  /**
   * Get status Has Been Setted
   *
   * @return boolean
   */
  public final boolean isStatusSetted() {
    return this.statusSetted;
  }

  /** Set status Null */
  public final void setStatusNull() {

    this.statusNull = true;
  }

  public final void setStatusNull(boolean aNullFlag) {

    this.statusNull = aNullFlag;
  }

  public final boolean isStatusNull() {

    return this.statusNull;
  }

  private String remarks;

  /** Attribute remarks Be Seted Falg */
  private boolean remarksSetted = false;

  /** Attribute remarks is Null Falg */
  private boolean remarksNull = false;

  /**
   * Get remarks
   *
   * @return String
   */
  public final String getRemarks() {

    if (isRemarksNull()) {
      return null;
    } else {
      return StringUtils.trim(remarks);
    }
  }

  /**
   * Set remarks
   *
   * @param String
   */
  public final void setRemarks(String remarks) {

    this.remarks = StringUtils.trim(remarks);

    this.remarksSetted = true;

    this.setRemarksNull(this.remarks == null);
  }

  /**
   * Get remarks Has Been Setted
   *
   * @return boolean
   */
  public final boolean isRemarksSetted() {
    return this.remarksSetted;
  }

  /** Set remarks Null */
  public final void setRemarksNull() {

    this.remarksNull = true;
  }

  public final void setRemarksNull(boolean aNullFlag) {

    this.remarksNull = aNullFlag;
  }

  public final boolean isRemarksNull() {

    return this.remarksNull;
  }

  private String defaultServer;

  /** Attribute defaultServer Be Seted Falg */
  private boolean defaultServerSetted = false;

  /** Attribute defaultServer is Null Falg */
  private boolean defaultServerNull = false;

  /**
   * Get defaultServer
   *
   * @return String
   */
  public final String getDefaultServer() {

    if (isDefaultServerNull()) {
      return null;
    } else {
      return StringUtils.trim(defaultServer);
    }
  }

  /**
   * Set defaultServer
   *
   * @param String
   */
  public final void setDefaultServer(String defaultServer) {

    this.defaultServer = StringUtils.trim(defaultServer);

    this.defaultServerSetted = true;

    this.setDefaultServerNull(this.defaultServer == null);
  }

  /**
   * Get defaultServer Has Been Setted
   *
   * @return boolean
   */
  public final boolean isDefaultServerSetted() {
    return this.defaultServerSetted;
  }

  /** Set defaultServer Null */
  public final void setDefaultServerNull() {

    this.defaultServerNull = true;
  }

  public final void setDefaultServerNull(boolean aNullFlag) {

    this.defaultServerNull = aNullFlag;
  }

  public final boolean isDefaultServerNull() {

    return this.defaultServerNull;
  }

  public int hashCode() {
    final int prime = 31;
    int result = 1;

    result = prime * result + (int) (getId() ^ (getId() >>> 32));

    return result;
  }

  public boolean equals(Object obj) {

    if (obj == null) {
      return false;
    }
    if ((obj instanceof WorkspaceServer) == false) {
      return false;
    }
    WorkspaceServer other = (WorkspaceServer) obj;

    if (getId() != other.getId()) {
      return false;
    }

    return true;
  }

  public String toString() {

    StringBuffer buffer = new StringBuffer();

    buffer.append("[");

    buffer.append("defaultServer=");
    buffer.append(this.defaultServer);

    buffer.append("id=");
    buffer.append(this.id);

    buffer.append("workspaceId=");
    buffer.append(this.workspaceId);

    buffer.append("serverName=");
    buffer.append(this.serverName);

    buffer.append("serverType=");
    buffer.append(this.serverType);

    buffer.append("serverLogo=");
    buffer.append(this.serverLogo);

    buffer.append("startCmd=");
    buffer.append(this.startCmd);

    buffer.append("stopCmd=");
    buffer.append(this.stopCmd);

    buffer.append("restartCmd=");
    buffer.append(this.restartCmd);

    buffer.append("serverLocation=");
    buffer.append(this.serverLocation);

    buffer.append("serverUser=");
    buffer.append(this.serverUser);

    buffer.append("serverPassword=");
    buffer.append(this.serverPassword);

    buffer.append("status=");
    buffer.append(this.status);

    buffer.append("remarks=");
    buffer.append(this.remarks);

    buffer.append("]");

    return buffer.toString();
  }
}
